package cn.hk.message.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 消息推送信息表
 * </p>
 *
 * @author xu
 * @since 2023-03-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mms_message")
@ApiModel(value="Message对象", description="消息推送信息表")
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "消息标题")
    private String title;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "消息类型：1：平台消息；2：社区消息 3通知消息")
    private Boolean type;

    @ApiModelProperty(value = "消息所属对象：1：所有人；2：社区；3：个人")
    private Boolean toType;

    @ApiModelProperty(value = "消息所属用户身份：0:无；1：儿童；2：孕妇；3：普通人；4：老年人")
    private String toPersonType;

    @ApiModelProperty(value = "是否含有用户标签：1：是；0：否")
    private Boolean isLabel;

    @ApiModelProperty(value = "发布状态1：已发布；0：未发布")
    private Boolean isUse;

    @ApiModelProperty(value = "是否置顶：1：置顶；0：不置顶")
    private Boolean isTop;

    @ApiModelProperty(value = "消息缩略图")
    private String imgUrl;

    @ApiModelProperty(value = "消息标识")
    private String identity;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    private String updateUser;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "社区id 只有当type为3的时候 这个字段才有值,门诊通告")
    private Long deptId;

    @ApiModelProperty(value = "置顶时间")
    private String topTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发布时间")
    private Date publishTime;


}
